package com.sh.sales.happysales.entity;

import android.os.Parcel;

import java.io.Serializable;

/**
 * Created by zhouyucheng on 2017/9/15.
 */

public class HisWallet extends BaseBean implements Serializable{


    private int id;
    private double cash;
    private String date;
    private String statusLabel;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public double getCash() {
        return cash;
    }

    public void setCash(double cash) {
        this.cash = cash;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getStatusLabel() {
        return statusLabel;
    }

    public void setStatusLabel(String statusLabel) {
        this.statusLabel = statusLabel;
    }

    @Override
    public String toString() {
        return "HisWallet{" +
                "id=" + id +
                ", cash=" + cash +
                ", date='" + date + '\'' +
                ", statusLabel='" + statusLabel + '\'' +
                '}';
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeInt(this.id);
        dest.writeDouble(this.cash);
        dest.writeString(this.date);
        dest.writeString(this.statusLabel);
    }

    public HisWallet() {
    }

    protected HisWallet(Parcel in) {
        super(in);
        this.id = in.readInt();
        this.cash = in.readDouble();
        this.date = in.readString();
        this.statusLabel = in.readString();
    }

    public static final Creator<HisWallet> CREATOR = new Creator<HisWallet>() {
        @Override
        public HisWallet createFromParcel(Parcel source) {
            return new HisWallet(source);
        }

        @Override
        public HisWallet[] newArray(int size) {
            return new HisWallet[size];
        }
    };
}
